import request from '@/utils/request'

/** 查询商品SKU分类列表*/
export function listSkuClass(query) {
  return request({
    url: '/distribution/skuClass/list',
    method: 'get',
    params: query
  })
}

/** 查询商品SKU分类列表-根据语言返回*/
export function listSkuClassByLanguage(params) {
  return request({
    url: '/distribution/skuClass/listByLanguage',
    params
  })
}

/** 查询商品SKU分类详细*/
export function getSkuClass(id) {
  return request({
    url: '/distribution/skuClass/' + id,
    method: 'get'
  })
}

/** 新增商品SKU分类*/
export function addSkuClass(data) {
  return request({
    url: '/distribution/skuClass',
    method: 'post',
    data: data
  })
}

/** 修改商品SKU分类*/
export function updateSkuClass(data) {
  return request({
    url: '/distribution/skuClass',
    method: 'put',
    data: data
  })
}

/** 删除商品SKU分类*/
export function delSkuClass(id) {
  return request({
    url: '/distribution/skuClass/' + id,
    method: 'delete'
  })
}
